package com.jy.rhin.support.parsing;

import com.jy.rhin.application.enums.DocumentTypeEnum;
import com.jy.rhin.facade.dto.DocumentModule;
import com.jy.rhin.facade.dto.TemplateRespDto;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * [@Description: 预防接种报告
 * [@Author: KaiLeZhou
 * [@Date: 2:36 下午 2024/4/16
 * [@Return:
 */

@Component
public class VaccinationReportParser extends BaseDocumentParser {

    @Override
    public DocumentTypeEnum getDocumentType() {
        return DocumentTypeEnum.VACCINATION_REPORT;
    }

    /**
     * 会诊记录文档解析
     *
     * [@param json
     * [@param templateRespList
     */
    @Override
    public List<TemplateRespDto> documentParsing(Object json, List<TemplateRespDto> templateRespList) {
        return null;
    }

    @Override
    public List<DocumentModule> createBodyModule() {
        List<DocumentModule> list = new ArrayList<>();
        //文档体模块
        list.add(new DocumentModule("搬迁信息章节","/component/structuredBody/component/section/code[@displayName='搬迁信息']"));
        list.add(new DocumentModule("既往史章节","/component/structuredBody/component/section/code[@code='11348-0']"));
        list.add(new DocumentModule("手术操作章节","/component/structuredBody/component/section/code[@code='47519-4']"));
        list.add(new DocumentModule("疑似预防接种异常反应章节","/component/structuredBody/component/section/code[@displayName='疑似预防接种异常反应']"));
        return list;
    }

}
